package Order;

public class restaurant {
    public static void main(String[] args) {
        Order o1 = new student();
        Order o2 = new teacher();
        Order o3 = new doctor();
//        o1.order();
//        o2.order();
//        o3.order();

        student s1 = (student) o1;
        s1.order();
        teacher t1 = (teacher)o2;
        t1.order();
        doctor d1 = (doctor)o3;
        d1.order();

    }
}
